__author__ = 'Luis'

from PyQt4.QtCore import *
from PyQt4.QtGui import *

import IGUBocadillos

class tiendaBocadillos(QMainWindow):
    def __init__(self):
        QMainWindow.__init__(self)
        self.ventana = IGUBocadillos.Ui_IGUBocadillos()
        self.ventana.setupUi(self)
        self.connect(self.ventana.bCalcular,SIGNAL("clicked()"),self.fCalcular)

    def fCalcular(self):
        self.ventana.lcdNumber.display(
            self.ventana.tNBocadillos.value()*1.50 + \
            self.ventana.TNRefrescos.value()*1.20 +
            self.ventana.TNCervezas.value()*1.00
        )



if __name__ == "__main__":
    import sys
    app = QApplication(sys.argv)
    interfaz = tiendaBocadillos()
    interfaz.show()
    sys.exit(app.exec_())